package com.bo.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bo.enity.Task;
import com.bo.mapper.TaskMapper;
import com.bo.service.ITaskService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: outes-boot
 * @Date:   2024-11-27
 * @Version: V1.0
 */
@Service
@DS("sp1")
public class SP1TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements ITaskService {

    @Resource
    private TaskMapper taskMapper;

    /**
     * 获取最大的id
     */
    @DS("sp1")
    public Integer getMaxId() {
        return taskMapper.getMaxId();
    }


    @DS("sp1")
    public Task getByRecipeNo(String recipeNo) {
        return taskMapper.getByRecipeNo(recipeNo);
    }
}
